/**
 * Author atguigu
 * Date 2020/11/21 14:02
 */
object FloatDemo {
    def main(args: Array[String]): Unit = {
        /*System.out.println(1 - 0.1 == 0.9);
        System.out.println(1 - 0.9 == 0.1);
        println(1 - 0.9)*/
    
        println(BigDecimal(1) - BigDecimal(0.9) == BigDecimal(0.1))
    }
}
